package com.parking.certified.client.inter;

import com.parking.certified.client.form.CertifiedSelectStallNumForm;
import com.parking.common.core.model.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(name = "parking-stall",path = "/stall")
public interface StallClient {

    /***
     * 物业模块调用
     * @param form
     * @return
     * @throws Exception
     */
    @PostMapping("/stallInfo/certifiedSelectStallNum")
    @ApiOperation("物业查询车位数量车位(物业调用)")
    public Result<Integer> certifiedSelectStallNum(@RequestBody CertifiedSelectStallNumForm form) throws Exception;

    /**
     * 平台禁用物业信息id而下架车位操作
     * platformSetStallDown：平台根据物业信息id下架车位（平台模块调用）
     * @param certifiedInfoId:物业信息id
     * @return true/false
     */
    @ApiOperation("平台根据物业信息id下架车位（平台模块调用）")
    @GetMapping("/stallInfo/platformSetStallDown")
    public  Result<Boolean> platformSetStallDown(@RequestParam("certifiedInfoId") Integer certifiedInfoId);
}
